<?php

namespace App\Library\Rms;

use App\Service\BaseService;
use GuzzleHttp\Client;
use GuzzleHttp\RequestOptions;
use Illuminate\Support\Facades\Log;

/**
 * 调用kfos的curl方法
 */
class KfosCurl extends RmsCurl
{
    public function __construct()
    {
        parent::__construct();

        $this->header = [
            'internal-key'     => config('orm.internalKey'),
            'internal-token'   => config('orm.internalValue'),
            'X-Requested-With' => 'XMLHttpRequest', // 传这个头，报错结果是json，而不是html
        ];

        $this->domain  = config('orm.domain');
        $this->timeOut = 10;
    }
}
